<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<html>
<body>
<h2>Hello World!</h2>
<form action="${pageContext.request.contextPath}/file/upload" enctype="multipart/form-data" method="post">
    用户:<input type="text" name="username"> <br />
    请选择要上传的文件：<input type="file" name="file"/><br />
    <input type="submit" value="upload">
</form>
</body>
</html>
